#!/usr/bin/env python
#-*-encoding:utf-8-*-
'''
Created on 2015年7月14日

@author: chenyongbing
'''
import sys,os
#current_dir = os.path.dirname(__file__)
current_dir = os.path.split(os.path.realpath(__file__))[0]

from django.http import HttpResponse,HttpResponseNotFound, HttpResponseRedirect   
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.utils import simplejson 
from django.views.decorators.csrf import csrf_exempt
from django.shortcuts import render

import logging

from scheduler_jobs import mySchedulerJobs

import datetime

def show_jobs(request):
    datas = mySchedulerJobs.get_all_jobs()
    print datas
    return render_to_response('zmSchedulerTools/show_jobs.html',{'jobs':simplejson.dumps(datas)},context_instance=RequestContext(request))
